<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Xppass Administrator's Control Panel</title>
<LINK href="<?php echo $www_site_url?>/public/yav-style.css" type=text/css rel=stylesheet>
<script src="<?php echo $www_site_url?>/public/js/common.js" type="text/javascript"></script>
<script src="<?php echo $www_site_url?>/public/js/ajax.js" type="text/javascript"></script>


<script>
function checkOnSubmit(formName) {
  	return true;
	var url = "<?php echo $www_site_url?>/admin.php";
	var params = mini.form.serialize($(formName));
	
	mini.ajax.post(url, function(r){

		var r = eval('(' + r + ')');   

		if(r.s==200){
			$('msg').innerHTML = r.m;	
		}
		if(r.s==400){
			$('msg').innerHTML = r.m;			
		}
	}, params);
	
	return false;
       
}

</script>
</head>
<body><div id="append"></div>
<div id="msg" style="color:red;text-align:center"></div>
	<div class="container">
	
		<div class="hastabmenu">
				<ul class="tabmenu">
					<li id="addcorporationbtn" class="tabcurrent"><a href="#"><?php echo lang('edit')?></a></li>	
				</ul>
				<div id="addcorporationdiv" class="tabcontentcur" style="width:80%">
					<form id="editreccomment" name="editreccomment" enctype="multipart/form-data" action="<?php echo $www_site_url?>/admin.php" method="post" onsubmit="return checkOnSubmit('editreccomment');" >
					<input type="hidden" name="action" value="index">
					<input type="hidden" name="op" value="updatereccomment">
					<input type="hidden" name="rec_id" value="<?php echo $info['rec_id']?>">
				
					<table width="100%">
						
						<tr>
							<td width="10%"><?php echo lang('user_name')?>:</td>
							<td><input type="text" name="user_name" class="textfield" value="<?php echo $info['content']['user_name']?>"/></td>
						</tr>					
						<tr>
							<td width="10%"><?php echo lang('title')?>:</td>
							<td><input type="text" name="title" class="textfield" value="<?php if(isset($info['content']['title']))echo $info['content']['title']?>"/><input type="button" value="Split" onclick="document.editreccomment.title.value+='&lt;!--!--&gt;';"></td>
						</tr>					
							
						<tr>
							<td><?php echo lang('comment')?>:</td>
							<td><textarea name="comment" rows="4" cols="80"><?php echo $info['content']['comment']?></textarea><input type="button" value="Split" onclick="document.editreccomment.comment.value+='&lt;!--!--&gt;';"></td>
						</tr>		
						
						<tr>
							<td><?php echo lang('img')?>:</td>
							<td><input type="file" name="img"/><img src="/public/upload/<?php echo $info['content']['img']?>" width="41" height="41">
							
							</td>
						</tr>				
						<tr>
						
							<td colspan="2"><input type="submit" value="<?php echo lang('submit')?>" class="button"/></td>
						</tr>
					</table>
					</form>
	
				</div>
		</div>
</div>

</body>
</html>